﻿using ML.Entity;
using System.Collections.Generic;

namespace ML.IRepository
{
    public interface IReceivingAddressRepository : IBaseRepository<ReceivingAddressEntity>
    {
        IEnumerable<ReceivingAddressEntity> GetAddRessByUserId(string id);

        IEnumerable<ReceivingAddressEntity> GetListByUserId(string id);

        ReceivingAddressEntity GetDefaulByUserId(string id);

        bool AddInfo(ReceivingAddressEntity entity);

        bool UpdateInfo(ReceivingAddressEntity entity);

        bool Default(string id, string userid);
    }
}